package com.admin.mapper;

import com.admin.domain.DeclareScore;
import com.admin.vo.declareDetail.score.ScoreSubModuleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Mapper类
 */
public interface DeclareScoreMapper extends BaseMapper<DeclareScore> {

    DeclareScore getByDeclareIdAndLevel(@Param("declareId") Integer declareId, @Param("scoreLevel") String scoreLevel);

    List<ScoreSubModuleVO> getSubScoreModule(@Param("declareId") Integer declareId, @Param("moduleName") String moduleName);

    /**
     * 计算分数
     * @param params
     * @return
     */
    Double sumScoreByMap(Map<String,Object> params);

}